import { get, post, del } from "../util/request";

// 获取订单列表
export const getOrderList = (data) => get("/api/v1/orders", data);
//提交订单
export const reqSaveOrderAPI = (data) => post("/api/v1/orders", data);

// 根据id获取订单详情
export const getOrderById = (id) => get("/api/v1/orders/" + id);

// 根据id删除订单
export const delOrderById = (id) => del("/api/v1/orders/" + id);
